<%@ page contentType="text/html; charset=UTF-8" language="java"%>
<%@ taglib uri="/tags/struts-bean" prefix="bean"%>
<%@ taglib uri="/tags/struts-html" prefix="html"%>
<%@ taglib uri="/tags/struts-logic" prefix="logic"%>
<html:html>
  <head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>
  <bean:message key="F0409.title"/>
  </title>
  <META http-equiv=Pragma content=no-cache>
  <META http-equiv=Cache-Control content=no-cache>
  <META http-equiv=Expires content=0>
  <link rel="stylesheet"
		href="<%=request.getContextPath()%>/resource/css/style.css"
		type="text/css">
  <script language="javascript" type="text/javascript" src="../../style/scripts/util.js"></script>
  <script language="javascript" type="text/javascript"
		src="<%=request.getContextPath()%>/resource/js/AdyhUtil.js"></script>
  <script language="javascript" type="text/javascript"
		src="<%=request.getContextPath()%>/resource/calendar/DCDA_C03.js"></script>
  <script type="text/javascript">
	function getMessage() {
	var errorMsg = document.forms[0].errorFlag.value;
	if ("" != errorMsg) {
		//**查询无结果！*/
		if (errorMsg == 2) {
			alert("<bean:message key="common.alert3"/>");
		}
		//**系统异常，请联系管理员！*/
		if (errorMsg == 3) {
			alert("<bean:message key="common.alert4"/>");
		}
		document.forms[0].errorFlag.value = "";
	}
}
	</script>
  </head>
  <body onLoad="getMessage();">
  <html:form method="post" action="/pages/F04/F0409.do"
		enctype="multipart/form-data">
    <html:hidden property="operationType" />
    <html:hidden property="errorFlag" />
	<html:hidden property="language"/>
    <!--Begin：表单折叠区块1-->
    <div id="divDlock_2" class="DivBlock">
      <div class="DivHead">
        <table width="100%" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td nowrap class="line_wrap" width="37" height="17"><img
								src="<%=request.getContextPath()%>/resource/image/block_unwrap.gif"
								style="CURSOR: hand;" alt="展开/折叠"
								onClick="JavaScript:WrapBlock('divDlock_2');"> </td>
            <td nowrap class="line_wrap" width="100%" height="17"><span class="SpanTitle">
              <bean:message key="F0409.title"/>
              </span> </td>
          </tr>
        </table>
      </div>
      <div class="DivTail" style="display:block">
        <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
          <TR>
            <TD NOWRAP align="right"><bean:message key="adyh.ManufacturingOrder"/></TD>
            <TD NOWRAP align="left"><html:text property="manufacturingOrder" styleClass="MyText" />
            </TD>
            <TD NOWRAP>&nbsp;</TD>
            <TD NOWRAP>&nbsp;</TD>
            <TD NOWRAP>&nbsp;</TD>
            <TD NOWRAP>&nbsp;</TD>
          </TR>
        </TABLE>
      </div>
    </div>
    <!--End：表单折叠区块1-->
    <!--Begin：表单按钮及提示区-->
    <div class="DivBlock">
      <div class="DivButton" style="text-align:right ">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td align="left">&nbsp;</td>
            <td align="right"><input type="button" name="Submit1" class="MyButton" value="<bean:message key="common.query"/>"
              onClick="javascript:operation('queryList');">
              <input type="button" name="Submit2" class="MyButton" value="<bean:message key="common.back"/>"
              onClick="window.location='../../frame/blank.html'"> </td>
          </tr>
        </table>
      </div>
    </div>
    <!--End：表单按钮及提示区-->
    <!--Begin：查询列表-->
    <logic:present name="F0409ActionForm" property="list">
      <div>
        <table id="tbList" width="100%" cellpadding="1" cellspacing="1"
					border="0" rules="none" class="ListBackground">
          <logic:greaterThan name="F0409ActionForm" property="currentWeek" value="0">
            <tr class="ListRow1">
              <td nowrap colspan="4"><bean:message key="F0407.currentWeek1"/>
                <bean:write name="F0409ActionForm" property="currentWeek" />
                <bean:message key="F0407.wk2"/>
              </td>
              <logic:present name="F0409ActionForm" property="weekList">
                <logic:iterate id="col" name="F0409ActionForm" property="weekList">
                  <td nowrap style="border:none">&nbsp;</td>
                </logic:iterate>
              </logic:present>
            </tr>
          </logic:greaterThan>
          <tr align="center" class="ListTitle">
          <%--  <td nowrap><bean:message key="common.id"/>
            </td>--%>
            <td nowrap><bean:message key="adyh.ManufacturingOrder"/>
            </td>
            <td align="center" nowrap><bean:message key="adyh.materialCode"/>
            </td>
            <td nowrap><bean:message key="adyh.materialName"/>
            </td>
            <td nowrap><bean:message key="F0409.materialStock"/>
            </td>
            <logic:present name="F0409ActionForm" property="weekList">
              <logic:iterate id="col" name="F0409ActionForm" property="weekList">
                <td nowrap><bean:message key="F0407.wk1"/>
                  <bean:write name="col" property="numOfWeek" />
                  <bean:message key="F0407.wk2"/></td>
              </logic:iterate>
            </logic:present>
          </tr>
          <logic:iterate id="rowp" name="F0409ActionForm" property="list">
            <logic:equal name="rowp" property="flag" value="0">
              <tr class="ListRow1"> 
            </logic:equal>
            <logic:equal name="rowp" property="flag" value="1">
              <tr class="ListRow1" style="background:#FF6666"> 
            </logic:equal>
            <%--<td nowrap align="center"><bean:write name="rowp" property="id" />
              </td>--%>
              <td nowrap align="center"><bean:write name="rowp" property="manufacturingOrder" />
              </td>
              <td nowrap align="center"><bean:write name="rowp" property="materialCode" />
              </td>
              <td nowrap align="left"><bean:write name="rowp" property="materialName" />
              </td>
              <td nowrap align="right"><bean:write name="rowp" property="stock" />
              </td>
              <logic:equal name="F0409ActionForm" property="wk1" value="1">
                <td nowrap align="right"><bean:write name="rowp" property="wk1"/>
                </td>
              </logic:equal>
              <logic:equal name="F0409ActionForm" property="wk2" value="1">
                <td nowrap align="right"><bean:write name="rowp" property="wk2"/>
                </td>
              </logic:equal>
              <logic:equal name="F0409ActionForm" property="wk3" value="1">
                <td nowrap align="right"><bean:write name="rowp" property="wk3"/>
                </td>
              </logic:equal>
              <logic:equal name="F0409ActionForm" property="wk4" value="1">
                <td nowrap align="right"><bean:write name="rowp" property="wk4"/>
                </td>
              </logic:equal>
              <logic:equal name="F0409ActionForm" property="wk5" value="1">
                <td nowrap align="right"><bean:write name="rowp" property="wk5"/>
                </td>
              </logic:equal>
              <logic:equal name="F0409ActionForm" property="wk6" value="1">
                <td nowrap align="right"><bean:write name="rowp" property="wk6"/>
                </td>
              </logic:equal>
              <logic:equal name="F0409ActionForm" property="wk7" value="1">
                <td nowrap align="right"><bean:write name="rowp" property="wk7"/>
                </td>
              </logic:equal>
              <logic:equal name="F0409ActionForm" property="wk8" value="1">
                <td nowrap align="right"><bean:write name="rowp" property="wk8"/>
                </td>
              </logic:equal>
              <logic:equal name="F0409ActionForm" property="wk9" value="1">
                <td nowrap align="right"><bean:write name="rowp" property="wk9"/>
                </td>
              </logic:equal>
              <logic:equal name="F0409ActionForm" property="wk10" value="1">
                <td nowrap align="right"><bean:write name="rowp" property="wk10"/>
                </td>
              </logic:equal>
              <logic:equal name="F0409ActionForm" property="wk11" value="1">
                <td nowrap align="right"><bean:write name="rowp" property="wk11"/>
                </td>
              </logic:equal>
              <logic:equal name="F0409ActionForm" property="wk12" value="1">
                <td nowrap align="right"><bean:write name="rowp" property="wk12"/>
                </td>
              </logic:equal>
              <logic:equal name="F0409ActionForm" property="wk13" value="1">
                <td nowrap align="right"><bean:write name="rowp" property="wk13"/>
                </td>
              </logic:equal>
              <logic:equal name="F0409ActionForm" property="wk14" value="1">
                <td nowrap align="right"><bean:write name="rowp" property="wk14"/>
                </td>
              </logic:equal>
              <logic:equal name="F0409ActionForm" property="wk15" value="1">
                <td nowrap align="right"><bean:write name="rowp" property="wk15"/>
                </td>
              </logic:equal>
              <logic:equal name="F0409ActionForm" property="wk16" value="1">
                <td nowrap align="right"><bean:write name="rowp" property="wk16"/>
                </td>
              </logic:equal>
              <logic:equal name="F0409ActionForm" property="wk17" value="1">
                <td nowrap align="right"><bean:write name="rowp" property="wk17"/>
                </td>
              </logic:equal>
              <logic:equal name="F0409ActionForm" property="wk18" value="1">
                <td nowrap align="right"><bean:write name="rowp" property="wk18"/>
                </td>
              </logic:equal>
              <logic:equal name="F0409ActionForm" property="wk19" value="1">
                <td nowrap align="right"><bean:write name="rowp" property="wk19"/>
                </td>
              </logic:equal>
              <logic:equal name="F0409ActionForm" property="wk20" value="1">
                <td nowrap align="right"><bean:write name="rowp" property="wk20"/>
                </td>
              </logic:equal>
              <logic:equal name="F0409ActionForm" property="wk21" value="1">
                <td nowrap align="right"><bean:write name="rowp" property="wk21"/>
                </td>
              </logic:equal>
              <logic:equal name="F0409ActionForm" property="wk22" value="1">
                <td nowrap align="right"><bean:write name="rowp" property="wk22"/>
                </td>
              </logic:equal>
              <logic:equal name="F0409ActionForm" property="wk23" value="1">
                <td nowrap align="right"><bean:write name="rowp" property="wk23"/>
                </td>
              </logic:equal>
              <logic:equal name="F0409ActionForm" property="wk24" value="1">
                <td nowrap align="right"><bean:write name="rowp" property="wk24"/>
                </td>
              </logic:equal>
              <logic:equal name="F0409ActionForm" property="wk25" value="1">
                <td nowrap align="right"><bean:write name="rowp" property="wk25"/>
                </td>
              </logic:equal>
              <logic:equal name="F0409ActionForm" property="wk26" value="1">
                <td nowrap align="right"><bean:write name="rowp" property="wk26"/>
                </td>
              </logic:equal>
              <logic:equal name="F0409ActionForm" property="wk27" value="1">
                <td nowrap align="right"><bean:write name="rowp" property="wk27"/>
                </td>
              </logic:equal>
              <logic:equal name="F0409ActionForm" property="wk28" value="1">
                <td nowrap align="right"><bean:write name="rowp" property="wk28"/>
                </td>
              </logic:equal>
              <logic:equal name="F0409ActionForm" property="wk29" value="1">
                <td nowrap align="right"><bean:write name="rowp" property="wk29"/>
                </td>
              </logic:equal>
              <logic:equal name="F0409ActionForm" property="wk30" value="1">
                <td nowrap align="right"><bean:write name="rowp" property="wk30"/>
                </td>
              </logic:equal>
              <logic:equal name="F0409ActionForm" property="wk31" value="1">
                <td nowrap align="right"><bean:write name="rowp" property="wk31"/>
                </td>
              </logic:equal>
              <logic:equal name="F0409ActionForm" property="wk32" value="1">
                <td nowrap align="right"><bean:write name="rowp" property="wk32"/>
                </td>
              </logic:equal>
              <logic:equal name="F0409ActionForm" property="wk33" value="1">
                <td nowrap align="right"><bean:write name="rowp" property="wk33"/>
                </td>
              </logic:equal>
              <logic:equal name="F0409ActionForm" property="wk34" value="1">
                <td nowrap align="right"><bean:write name="rowp" property="wk34"/>
                </td>
              </logic:equal>
              <logic:equal name="F0409ActionForm" property="wk35" value="1">
                <td nowrap align="right"><bean:write name="rowp" property="wk35"/>
                </td>
              </logic:equal>
              <logic:equal name="F0409ActionForm" property="wk36" value="1">
                <td nowrap align="right"><bean:write name="rowp" property="wk36"/>
                </td>
              </logic:equal>
              <logic:equal name="F0409ActionForm" property="wk37" value="1">
                <td nowrap align="right"><bean:write name="rowp" property="wk37"/>
                </td>
              </logic:equal>
              <logic:equal name="F0409ActionForm" property="wk38" value="1">
                <td nowrap align="right"><bean:write name="rowp" property="wk38"/>
                </td>
              </logic:equal>
              <logic:equal name="F0409ActionForm" property="wk39" value="1">
                <td nowrap align="right"><bean:write name="rowp" property="wk39"/>
                </td>
              </logic:equal>
              <logic:equal name="F0409ActionForm" property="wk40" value="1">
                <td nowrap align="right"><bean:write name="rowp" property="wk40"/>
                </td>
              </logic:equal>
              <logic:equal name="F0409ActionForm" property="wk41" value="1">
                <td nowrap align="right"><bean:write name="rowp" property="wk41"/>
                </td>
              </logic:equal>
              <logic:equal name="F0409ActionForm" property="wk42" value="1">
                <td nowrap align="right"><bean:write name="rowp" property="wk42"/>
                </td>
              </logic:equal>
              <logic:equal name="F0409ActionForm" property="wk43" value="1">
                <td nowrap align="right"><bean:write name="rowp" property="wk43"/>
                </td>
              </logic:equal>
              <logic:equal name="F0409ActionForm" property="wk44" value="1">
                <td nowrap align="right"><bean:write name="rowp" property="wk44"/>
                </td>
              </logic:equal>
              <logic:equal name="F0409ActionForm" property="wk45" value="1">
                <td nowrap align="right"><bean:write name="rowp" property="wk45"/>
                </td>
              </logic:equal>
              <logic:equal name="F0409ActionForm" property="wk46" value="1">
                <td nowrap align="right"><bean:write name="rowp" property="wk46"/>
                </td>
              </logic:equal>
              <logic:equal name="F0409ActionForm" property="wk47" value="1">
                <td nowrap align="right"><bean:write name="rowp" property="wk47"/>
                </td>
              </logic:equal>
              <logic:equal name="F0409ActionForm" property="wk48" value="1">
                <td nowrap align="right"><bean:write name="rowp" property="wk48"/>
                </td>
              </logic:equal>
              <logic:equal name="F0409ActionForm" property="wk49" value="1">
                <td nowrap align="right"><bean:write name="rowp" property="wk49"/>
                </td>
              </logic:equal>
              <logic:equal name="F0409ActionForm" property="wk50" value="1">
                <td nowrap align="right"><bean:write name="rowp" property="wk50"/>
                </td>
              </logic:equal>
              <logic:equal name="F0409ActionForm" property="wk51" value="1">
                <td nowrap align="right"><bean:write name="rowp" property="wk51"/>
                </td>
              </logic:equal>
              <logic:equal name="F0409ActionForm" property="wk52" value="1">
                <td nowrap align="right"><bean:write name="rowp" property="wk52"/>
                </td>
              </logic:equal>
              <logic:equal name="F0409ActionForm" property="wk53" value="1">
                <td nowrap align="right"><bean:write name="rowp" property="wk53"/>
                </td>
              </logic:equal>
              <logic:equal name="F0409ActionForm" property="wk54" value="1">
                <td nowrap align="right"><bean:write name="rowp" property="wk54"/>
                </td>
              </logic:equal>
            </tr>
          </logic:iterate>
        </table>
        <table width="100%" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td colspan="6"><bean:define id="actionFormName" value="F0409ActionForm" />
              <%@ include file="../../style/pagejsp/pageable.jsp"%>
            </td>
          </tr>
        </table>
      </div>
    </logic:present>
    <!--End：查询列表-->
  </html:form>
  </body>
</html:html>
<script language="javascript" type="text/javascript">
InitForm();
FocusTableRow("tbList",1);
</script>
